    	<div class="position">当前位置：<a href="<?php echo Yii::app()->createUrl('member/index/index');?>"><?php echo t('Member','web') ?></a> &gt; <a href="<?php echo Yii::app()->createUrl('member/index/orders');?>">交易管理</a> &gt; 收货地址</div>
        <div class="remind_box mt10"><span class="mem_ico ico_tip"></span>友情提醒：最多保存10个收货地址</div>
        <div class="hr_15"></div>
        <!--管理收货地址  start-->
        <?php 
        if(isset($model->zma_id) && $model->zma_id){
            $action = '编辑';
        }else{
            $action = '新增';
        }
        ?>
        <div class="pub_tab address_manage">
            <div class="tab_hd2">
                <ul class="c_f">
                    <li><a href="<?php echo Yii::app()->createUrl('member/index/addresses');?>">我的收货地址<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                    <li class="select"><a href="<?php echo Yii::app()->createUrl('member/index/addaddress');?>"><?php echo $action;?>收货地址<b class="mem_bgx left"></b><b class="mem_bgx right"></b></a></li>
                </ul>
            </div>
            <div class="tab_cont2">
                <div class="add_address mt10">
                    <div class="hd"><span class="f_r">带<strong class="c_red">*</strong>为必填项</span><h3><?php echo $action;?>地址</h3></div>
                    <div class="bd">
                    <?php 
                        $form = $this->beginWidget('CActiveForm', 
                        array(
                        'id'=>'user-form',
                        'enableAjaxValidation'=>false,
                        'enableClientValidation'=>true, 
                        'focus'=>array($model,'zma_name'),
                        'clientOptions'=>array( 
                            'id'=>'addressFrm',
                        ),
                        )); ?>
                            <?php echo $form->hiddenField($model,'zma_id'); ?>
                            <ul class="form_list">
                                <li>
                                    <span class="tit"><?php echo $form->labelEx($model,'zma_name'); ?>：</span>
                                    <?php echo $form->textField($model,'zma_name',array('class'=>'t_ipt ipt_bg','maxlength'=>'32','id'=>'name',)); ?>
                                    <?php echo $form->error($model,'zma_name','',true,true,'span'); ?>
                                </li>
                                <li>
                                    <span class="tit"><?php echo $form->labelEx($model,'zar_id'); ?>：</span>
                                    <?php Area::model()->getAreainfo('MemAddres',$model->zar_id,'s_ipt');?>
                                    <?php echo $form->error($model,'zar_id','',true,true,'span'); ?>
                                </li>
                                <li>
                                    <span class="tit"><?php echo $form->labelEx($model,'zma_address'); ?>：</span>
                                    <?php echo $form->textField($model,'zma_address',array('class'=>'t_ipt ipt_bg','maxlength'=>'50')); ?>
                                    <?php echo $form->error($model,'zma_address','',true,true,'span'); ?>
                                </li>
                                <li>
                                    <span class="tit"><?php echo $form->labelEx($model,'zma_zip'); ?>：</span>
                                    <?php echo $form->textField($model,'zma_zip',array('class'=>'t_ipt ipt_bg','maxlength'=>'6')); ?>
                                    <?php echo $form->error($model,'zma_zip','',true,true,'span'); ?>
                                </li>
                                <li>
                                    <span class="tit"><?php echo $form->labelEx($model,'zma_mob'); ?>：</span>
                                    <?php echo $form->textField($model,'zma_mob',array('class'=>'t_ipt ipt_bg','maxlength'=>'11')); ?>
                                    <?php echo $form->error($model,'zma_mob','',true,true,'span'); ?>
                                </li>
                                <li>
                                    <span class="tit"><?php echo $form->labelEx($model,'zma_tel'); ?>：</span>
                                    <?php echo $form->textField($model,'zma_tel',array('class'=>'t_ipt ipt_bg','maxlength'=>'20')); ?>
                                    <?php echo $form->error($model,'zma_tel','',true,true,'span'); ?>
                                </li>
                                <li>
                                    <span class="tit"><?php echo $form->labelEx($model,'zma_default'); ?>：</span>
                                    <?php echo $form->checkBox($model,'zma_default'); ?>
                                    <?php echo $form->error($model,'zma_default','',true,true,'span'); ?>
                                </li>
                                <li class="submit">
                                    <span class="tit"></span>
                                    <input class="mem_btn mem_btn06" type="submit" name="" value="保 存" onclick="return addaddress();" />
                                </li>
                            </ul>
                        </form>
                    <?php $this->endWidget(); ?>
                    </div>
                </div>
            </div>
        </div>
        <!--管理收货地址  end-->